package com.example.orderserver.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "goods-server", qualifier = "goodsFeignClient")
public interface GoodsFeignClient {

    @RequestMapping("/deductGoodsStock")
    Boolean deductGoodsStock(@RequestParam("goodsId") Long goodsId, @RequestParam("quantity") Integer quantity);
}